package com.laolei.eureka.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("demo-Service")
public interface DemoApi {
	
	@RequestMapping(method = RequestMethod.GET, path = "/sum")
	Integer add(@RequestParam("a") Integer a, @RequestParam("b") Integer b);
	
}
